
import {patch} from './vdom/patch'


function mountComponent(vm){
    vm._update(vm._render());
}

function lifecycleMixin(Vue){
    Vue.prototype._update = function (vnode){
        const vm = this;
        patch(vm.$el,vnode) // 更新DOM节点

    }
}


export {
    mountComponent,
    lifecycleMixin
}